﻿using Website.Interfaces;

namespace Website.Infrastructure
{
    public class DeviceDetectorFactory
    {
        public IDeviceDetector Create(string userAgent)
        {
            if (userAgent.Contains("Android"))
            {
                return new AndroidDeviceDetector(userAgent);
            }

            return new DeviceDetector(userAgent);
        }
    }
}
